package com.bw.shopping.time;


import android.os.Handler;

public class TimeThread extends Thread {

    private Handler handler;

    public TimeThread(Handler handler){
        this.handler = handler;
    }

    @Override
    public void run() {
        super.run();
        while (!isInterrupted()){
            handler.sendEmptyMessage(0);
            try {
                sleep(1000);

            } catch (InterruptedException e) {
                e.printStackTrace();

            }


        }
    }
}
